﻿namespace Smart.Model
{
    public abstract class Singleton<T> where T : Singleton<T>,new()
    {
        static T ms_instance = null;
        public static T Instance
        {
            get
            {
                if (null == ms_instance)
                    ms_instance = new T();
                return ms_instance;
            }
        }

        public abstract void Initialize();
    }
}